package com.cgsrp.cgsrp_shopping.domain;

import java.io.Serializable;
import java.math.BigDecimal;

import com.cgsrp.cgsrp_user_province.domain.User;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShoppingCart implements Serializable {
    /**
    * 购物车id
    */
    private Integer id;

    /**
    * 用户id
    */
    private Integer userId;

    /**
    * 商品id
    */
    private Integer productId;

    /**
    * 购买数量
    */
    private Integer number;

    /**
    * 小计
    */
    private BigDecimal cost;

    /**
    * 状态
    */
    private Integer state;

    private User user;

    private Product product;
}
